package model

import (
	"openapi.itspire.cn/database"
)

type Visit struct {
	Id         	  uint64 `json:"id"`
	Url           string `json:"url"`
	Ip      	  uint64 `json:"ip"`
	ArticleId     uint64 `json:"articleId"`
	Country       string `json:"country"`
	Province      string `json:"province"`
	City          string `json:"city"`
	CreateTime    uint64 `json:"createTime"`
}

func (c Visit) GetTableName() string {
	return database.Ins.NewScope(c).TableName()
}